
<template>
	<view>
		<navigator url="/pages/login/login">登录</navigator>
		<button @click="userInfo()">获取用户信息</button>
		<navigator url="/pages/message/notices">测试通知组件</navigator>
		<navigator url="/pages/test/test">测试页面</navigator>
		<navigator url="/pages/test/edit">富文本编辑器</navigator>
		<navigator url="/pages/test/showHtml">富文本解析</navigator>
		<navigator url="/pages/user/user?id=1375741923913146369">个人页</navigator>
		<navigator url="/pages/my/personal-data">编辑资料</navigator>
		<navigator url="/pages/test/indexTest">测试首页</navigator>
		<navigator url="/pages/index/webView">外链测试</navigator>
		<button @click="logout">退出登录</button>
	</view>
</template>

<script>
	import userApi from '@/request/api/userApi.js'
	export default {
		data() {
			return {
				
			}
		},
		created() {
		},
		methods: {
			userInfo(){
				userApi.userInfo().then((data) =>{
					console.log(data)
				}).catch((err)=>{
					console.log(err)
				})
			},
			logout(){
				uni.removeStorageSync("user")
				uni.removeStorageSync("token")
			},
		}
	}
</script>

<style>
	

</style>
